{layout name="layout" /}
<script type="text/javascript" src="__VDONG__/js/chooseproject.js"></script>
<style>
.percenter{ 
    padding: 6px 15px;
    cursor: pointer;
    line-height: 24px;
    border-radius: 5px;
    border: 1px solid #ffb300;
    color: #ffb300;
    background: #ffb300;
    color: #fff
  }
  .createproject{
      width: 120px;
    display: block;
    cursor: pointer;
    height: 38px;
    line-height: 38px;
    border-radius: 5px;
    border: 1px solid #ffb300;
    background: #ffb300;
    color: #fff;
    margin: 0 auto;
    position: absolute;
    bottom: 65px;
    left: 50%;
    margin-left: -60px;
  }
  .mart50{margin-top: 50px;}
</style>
<!-- <img class="login_bg" src="__VDONG__/img/login_bg.png"  /> -->
   <!-- <p class="g-title">我的项目</p>  -->
   <!-- 微信小程序功能特性 --> 
    <!-- <div class="function-identity mart50">
      <div class="fun-identity"> 
      <a href="">
        <img src="__VDONG__/img/add.jpg" height="78"  /> 
      </a> 
      <p class="fun-title">创建项目</p> 
       <p>拥有一个自己的小程序</p> 
       <p style="margin-top: 17px;font-size: 20px;">
        <a href="{:url('user/createproject')}" class="percenter">创建项目</a>
      </p>
      </div>
     {volist name="project" id="vo"}
      <div class="fun-identity"> 
       <img src="{$vo.pic!=''?$vo.pic:'__VDONG__/picture/1-1.png'} " alt="{$vo.name}" height="78" /> 
       <p class="fun-title">{$vo.name}</p> 
       <p>{$vo.name}</p> 
       <p style="margin-top: 17px;font-size: 20px;">
      {if condition="$type eq 0"}
        <span onclick='chooseproject("{:url('user/chooseproject')}","{$vo.id}","{$type}")' class="percenter">进入项目</span>
      {else/}
      <a class="percenter" href="http://zje.twothink.com/web/index.php?c=api&a=login&uniacid={$vo.uniacid}&token={$token}&uid={$uid}&salt={$salt}">进入项目</a>
      <a class="percenter" href='{:url('user/editproject','id='.$vo["id"])}'>编辑项目</a>
      {/if} 
      </p>
      </div>
      {/volist}
     </div>  -->
     {empty name="project"}
          <div class="myWrap"> 
            <p class="g-title">我的项目<span class=""></span></p> 
             <div class="function-identity">
              <p>请点击创建项目后输入您的内容后将会在这里显示内容</p> 
              <img class="myImg" src="__VDONG__/img/add_1.png" width="284"  /> 
              <a href="{:url('user/createproject')}" class="createproject">创建项目</a>
            </div> 
          </div>
      {else /}
      <div class="myWrap"> 
            <p class="g-title">我的项目<span class=""></span></p> 
             <div class="function-identity">
              <p>{$project.name}</p> 
              <img class="myImg" src="{$project.pic}" width="284"  /> 
              <a href="{:url('user/editproject','id='.$vo["id"])}" class="createproject">管理项目</a>
              <span onclick='chooseproject("{:url('user/chooseproject')}","{$vo.id}","{$type}")' class="percenter">进入项目</span>
            </div> 
          </div>
      {/empty}
